//
//  HessianFormDataRequest.h
//  DecorationDesign
//
//  Created by 许开伟 on 14/12/8.
//  Copyright (c) 2014年 许开伟. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HessianKit.h"

typedef void (^CompletedBlock)(id respInfo);
typedef void (^FailedBlock)(void);

@protocol DecorationServiceRPC <NSObject>
- (id)invokeService:(id)params;
@end

@interface HessianFormDataRequest : NSObject
{
    CompletedBlock completedBlock;
    FailedBlock failedBlock;
}

@property (retain) NSDictionary *postData;
@property (nonatomic, strong) id<DecorationServiceRPC> rpc;

- (void)startRequestWithURL:(NSURL *)url andCompletionBlcok:(CompletedBlock)compBlock andFailedBlock:(FailedBlock)failBlock;

@end
